package com.qst.Serviceimpl;

import com.qst.Service.AdminRoomService;
import com.qst.Vo.AdminRoomVo;
import com.qst.dao.AdminRoomMapper;
import com.qst.pojo.Room;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @packageName:com.qst.Serviceimpl
 * @className:AdminRoomServiceimpl
 * @Description:
 * @author:zhangyu
 * @date 2021/6/21 8:54
 **/

@Service
public class AdminRoomServiceimpl implements AdminRoomService {

    @Resource
    AdminRoomMapper adminRoomMapper;

    @Override
    public List<Room> adminfindbyname(String roomname) {
        return adminRoomMapper.adminfindbyname(roomname);
    }

    @Override
    public List<Room> adminallroom(AdminRoomVo adminRoomVo) {
        return adminRoomMapper.adminallroom(adminRoomVo);
    }


    @Override
    public int updateadminroom(Room room) {
        return adminRoomMapper.updateadminroom(room);
    }

    @Override
    public int deleteadminroom(int id) {
        return adminRoomMapper.deleteadminroom(id);
    }

    @Override
    public int addadminroom(Room room) {
        return adminRoomMapper.addadminroom(room);
    }
}
